package com.baitengsoft.patentapimonitor.api.service;

import com.baitengsoft.patentapimonitor.api.entity.WebRolesEntity;
import com.baitengsoft.patentapimonitor.api.model.WebRolesViewModel;
import com.baitengsoft.patentapimonitor.api.model.WebRolesmenuRlatViewModel;
import com.baitengsoft.patentapimonitor.common.utils.PageResult;

import java.util.List;

/**
 * Created by Admin on 2017/12/18.
 */
public interface WebRolesService {

    PageResult<WebRolesmenuRlatViewModel> getRoles(WebRolesViewModel model);

    Integer saveRoles(String roleName,int userId);

    Integer updateById(Integer id,String roleName,int userId);

    Integer delRolesById(String ids,int userId);

    WebRolesEntity searchById(String id);

    List<WebRolesEntity> searchModels();

    Boolean checkRolesName(String rolesName);
}
